package com._51cto.healthy.content;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@ApiModel("分页数据封装")
@Data
@Accessors(chain = true)
public class P<T> implements Serializable {
    @ApiModelProperty("当前页")
    private int pageNum;
    @ApiModelProperty("页条目")
    private int pageSize;
    @ApiModelProperty("总页数")
    private int pages;
    @ApiModelProperty("总条目")
    private long total;
    @ApiModelProperty("数据列表")
    private List<T> rows;
}